package com.example.dllo.my36kr.tools;

import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.dllo.my36kr.R;

/**
 * Created by dllo on 16/8/17.
 */
public class StaticUrl {
    public static final String NEWS_DATA_URL = "https://rong.36kr.com/api/mobi/news?pageSize=20&columnId=all&pagingAction=up";
    public static final String NEWS_LUNBOTU_URL = "https://rong.36kr.com/api/mobi/roundpics/v4";
    public static final String SHARE_ALL_URL = "https://rong.36kr.com/api/mobi/cf/actions/list?page=1&type=all&pageSize=20";
    public static final String SHARE_ALL_FIND_URL = "https://rong.36kr.com/api/mobi/cf/actions/list?page=1&type=all&pageSize=3";
    public static final String SHARE_FUNDRAISING_URL = "https://rong.36kr.com/api/mobi/cf/actions/list?page=1&type=underway&pageSize=20";
    public static final String SHARE_FINISH_URL = "https://rong.36kr.com/api/mobi/cf/actions/list?page=1&type=raise&pageSize=20";
    public static final String SHARE_SUCCESS_URL = "https://rong.36kr.com/api/mobi/cf/actions/list?page=1&type=finish&pageSize=20";
    public static final String NEWS_PROJECT_URL = "https://rong.36kr.com/api/mobi/news?pageSize=20&columnId=67&pagingAction=up";//项目早期
    public static final String NEWS_WHEEL_URL = "https://rong.36kr.com/api/mobi/news?pageSize=20&columnId=68&pagingAction=up";//B轮后
    public static final String NEWS_FIRM_URL = "https://rong.36kr.com/api/mobi/news?pageSize=20&columnId=23&pagingAction=up";//大公司
    public static final String NEWS_CAPITAL_URL = "https://rong.36kr.com/api/mobi/news?pageSize=20&columnId=69&pagingAction=up";//资本
    public static final String NEWS_DEPTH_URL = "https://rong.36kr.com/api/mobi/news?pageSize=20&columnId=70&pagingAction=up";//深度
    public static final String NEWS_RESEARCH_URL = "https://rong.36kr.com/api/mobi/news?pageSize=20&columnId=71&pagingAction=up";//研究
    public static final String NEWS_KRTY_URL = "https://rong.36kr.com/api/mobi/news?pageSize=20&columnId=tv&pagingAction=up";//氪TV
    public static final String NEWS_DETAILS_URL = "https://rong.36kr.com/api/mobi/news/";//详情
    public static final String NEWS_AUTHOR_URL = "https://rong.36kr.com/api/mobi/news/";//作者
    public static final String SEARCH_URL = "https://rong.36kr.com/api/mobi/news/search?keyword=";//搜索
    public static final String FIND_NEAR_TERM_URL = "https://rong.36kr.com/api/mobi/activity/list?page=1";//近期活动全部
    public static final String FIND_PEOPLE_URL = "https://rong.36kr.com/api/mobi/investor?page=1&pageSize=20";//寻找投资人
    public static final String FIND_NEAR_DAY_URL = "https://rong.36kr.com/api/mobi/activity/list?page=1&categoryId=1&pageSize=20";//Demo Day
    public static final String FIND_NEAR_KJ_URL = "https://rong.36kr.com/api/mobi/activity/list?page=1&categoryId=4&pageSize=20";//氪空间
    public static final String FIND_NEAR_TZ_URL = "https://rong.36kr.com/api/mobi/activity/list?page=1&categoryId=5&pageSize=20";//股份投资
    public static final String FIND_NEAR_FW_URL = "https://rong.36kr.com/api/mobi/activity/list?page=1&categoryId=6&pageSize=20";//企业服务
    public static final String FIND_NEAR_RZ_URL = "https://rong.36kr.com/api/mobi/activity/list?page=1&categoryId=7&pageSize=20";//极速融资
    public static final String SHARE_TIAO_URL = "https://z.36kr.com/project/";//极速融资
    private static ProgressDialog myDialog;


    public static final Dialog createLoadingDialog(Context context) {
        myDialog = new ProgressDialog(context); // 获取对象
        myDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); // 设置样式为圆形样式
        myDialog.setTitle("友情提示"); // 设置进度条的标题信息
        myDialog.setMessage("数据加载中，请稍后..."); // 设置进度条的提示信息
//        myDialog.setIcon(R.drawable.ic_launcher); // 设置进度条的图标
        myDialog.setIndeterminate(false); // 设置进度条是否为不明确
        myDialog.setCancelable(true); // 设置进度条是否按返回键取消


        myDialog.show(); // 显示进度条
        return myDialog;
    }
    public static final Dialog stop(){
        myDialog.dismiss();
        return myDialog;

    }
}
